<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
<input type="button" value="dj" @click="xhh">
    <p>{{ sh }}</p>
</div>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    var app=new Vue({
        el:"#app",
        data:{
            sh:"笑话"
        },
        methods:{
            xhh:function () {
                var that=this;
                axios.get("https://autumnfish.cn/api/joke").then(function (response) {
                  that.sh= response.data;
                })
            }
        }

    })

</script>
</body>
</html>